<?
require("config.php");

$location_status .= " | Delete";

$show_backnav = "claim_menu";

require($rela_path . "bin/country.php");

$menutype = 2;

if (NULL!=$action){

	$Query = "delete from $table where id = $id";

	myQuery($Query);

	$Query1 = "delete from med_shipping where cid = $id";

	myQuery($Query1);


	header("location:" . $rela_path . "share/msg.php?v=79&Start_Num=$Start_Num&Search=".urlencode($Search));

	exit();

}



$Query = "select 
	addr,
	msg,
	rank,
	id,addr_en,pub,name
from $table where id='$id' Limit 1";
$r = myQuery($Query);
	$addr= $r[0][0];
	$msg=	$r[0][1];
	$rank=	$r[0][2];
	$cid=	$r[0][3];
	$addr_en=	$r[0][4];
	$pub=	$r[0][5];
	$name=	$r[0][6];
	

require($rela_path . "inc/header.php");

?>

<form action="" method="post" name="form1">  

<!--hidden filed-->
<input name="action" type="hidden" value="edit">
<input name="id" type="hidden" value="<?print($cid)?>">





<br>
<table width="95%" border="0" align="center">
  <tr> 
    <td width="579" valign="top" height="127"> Are you sure to delete this record 
      ? 
      <input type="submit" class="button" name="Submit" value="   Yes   ">
      <input type="button" class="button" name="Submit2" value="   No   " onClick="Redirect('claim_menu.php',1)">
      <br>
      <br>
      <table border="0">
          <tr> 
          <td class="tdheader">Name :</td>
            <td>
			   <?
			   echo $name;
			   ?> 
			</td>
          </tr>
          <tr> 
          <td class="tdheader">Address :</td>
            <td><input type="hidden" name="oid" value="<?=$r1[0][0]?>">
			   <?=$addr?>  
			</td>
          </tr>
          <tr> 
          <td class="tdheader">Address(En) :</td>
            <td><input type="hidden" name="oid" value="<?=$r1[0][0]?>">
			   <?=$addr_en?>  
			</td>
          </tr>
          <tr> 
          <td class="tdheader">Info :</td>
            <td>
			   <?=$msg?>
			</td>
          </tr>
          <tr> 
          <td class="tdheader">Rate :</td>
            <td>
			   <?=$rank?> %
			</td>
          </tr>
          <tr> 
          <td class="tdheader">Publish? :</td>
            <td>
			   <? if ($pub=="1") echo "Yes"; else echo "No";?>
			</td>
          </tr>
      </table>
</td>

  </tr>
</table>
</form>
<br>
<br>
<br>
<?
require($rela_path . "inc/footer.php");
?>
